package com.eas.biz.service.statistic.domain;

import java.util.HashMap;
import java.util.Map;

import com.eas.biz.service.user.domain.ClassInfo;

public class ClassStatistic extends BaseExamStatistic {

    private long classId;

    private long schoolId;

    private ClassInfo classInfo;

    private Map<String, ClassSubjectStatistic> subjectMap;

    public ClassStatistic() {
        super();
        subjectMap = new HashMap<String, ClassSubjectStatistic>();
    }

    public void addSubjectStatistic(ClassSubjectStatistic subject) {
        if (subject != null) {
            subjectMap.put(subject.getSubject(), subject);
        }
    }

    public ClassSubjectStatistic getSubjectStatistic(String subject) {
        return subjectMap.get(subject);
    }

    public long getClassId() {
        return classId;
    }

    public void setClassId(long classId) {
        this.classId = classId;
    }

    public long getSchoolId() {
        return schoolId;
    }

    public void setSchoolId(long schoolId) {
        this.schoolId = schoolId;
    }

    public Map<String, ClassSubjectStatistic> getSubjectMap() {
        return subjectMap;
    }

    public void setSubjectMap(Map<String, ClassSubjectStatistic> subjectMap) {
        this.subjectMap = subjectMap;
    }

    public ClassInfo getClassInfo() {
        return classInfo;
    }

    public void setClassInfo(ClassInfo classInfo) {
        this.classInfo = classInfo;
    }
}
